﻿<!doctype html>
 <html >
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="${req.contextPath}/css/common.css">
   <link rel="stylesheet" href="${req.contextPath}/css/main.css">
   <script type="text/javascript" src="${req.contextPath}/js/jquery.min.js"></script>
   <script type="text/javascript" src="${req.contextPath}/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="${req.contextPath}/js/common.js"></script>
</head>

<body>
  <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">编辑会议室</b></div>
            <div class="box_center">
              <form action="list.ftl" id="form" class="jqtransform">
               <table class="form_table pt15 pb15" width="100%" border="0" cellpadding="0" cellspacing="0">

                   <input type="hidden" name="meetId" class="input-text lh30" size="40" value="${meet.meetId}">
                   <input type="hidden" id="page" class="input-text lh30" size="40" value="${page}">

                   <tr>
                  <td class="td_right">会议室名称：</td>
                  <td class=""> 
                    <input type="text" name="meetName" class="input-text lh30" size="40" value="${meet.meetName}">
                  </td>
				  </tr>
				  <tr>
                  <td class="td_right">会议室描述：</td>
				  <td><input type="" name="meetDesc" class="input-text lh30" size="40" value="${meet.meetDesc}"></td>
                </tr>
                 <tr>
                   <td class="td_right">&nbsp;</td>
                   <td class="">
                     <input type="button" onclick="update()" name="button" class="btn btn82 btn_save2" value="保存">
                    <input type="button" name="button" class="btn btn82 btn_res" onclick="location.href='javascript:history.go(-1)'" value="返回"> 
                   </td>
                 </tr>
               </table>
               </form>
            </div>
          </div>
        </div>
     </div>
   </div> 
</body>

 <script type="text/javascript" src="${req.contextPath}/js/jquery.min.js"></script>
 <script>
     function update() {
         var formDate = $("#form").serialize();
         var page = $("#page").val();
         $.post(
             "${req.contextPath}/administrative/updateMeet",
             formDate,
             function (result) {
                 if (result.code==0){
                     alert("修改成功");
                     location.href="${req.contextPath}/resource/xingzheng/demo1/list?page="+page;
                 }else {
                     alert(result.msg)
                 }
             },
             "json"
         );

     }
 </script>

</html>